import request from '@/utils/request'

// 查询数据库产品列表
export function listDatabaseProduct(query) {
  return request({
    url: '/resource/database-product/list',
    method: 'get',
    params: query
  })
}

// 查询数据库产品详细
export function getDatabaseProduct(productId) {
  return request({
    url: '/resource/database-product/' + productId,
    method: 'get'
  })
}

// 新增数据库产品
export function addDatabaseProduct(data) {
  return request({
    url: '/resource/database-product',
    method: 'post',
    data: data
  })
}

// 修改数据库产品
export function updateDatabaseProduct(data) {
  return request({
    url: '/resource/database-product',
    method: 'put',
    data: data
  })
}

// 删除数据库产品
export function delDatabaseProduct(productId) {
  return request({
    url: '/resource/database-product/' + productId,
    method: 'delete'
  })
}

// 导出数据库产品
export function exportDatabaseProduct(query) {
  return request({
    url: '/resource/database-product/export',
    method: 'post',
    params: query
  })
}